package org.fenixsoft.jvm.chapter13.my;

public class MyThreadLocalDemo {
    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public void test(){
        for (int i = 0; i < 3; i++) {
            int temp = i;
            new Thread(() -> {
                threadLocal.set("" + temp);
            }).start();
        }

    }

}
